package com.example.latte_core.app;

import android.content.Context;

import java.util.HashMap;

public final class Latte {
    public static Configurator init(Context context){
        getConfiguration().put(ConfigType.APPLICATION_CONTEXT.name(),context.getApplicationContext());
        return Configurator.getInstance();
    }
    public static HashMap<String,Object> getConfiguration(){
        return Configurator.getInstance().getLatteConfig();
    }

    public static Context getApplication(){
        return (Context) getConfiguration().get(ConfigType.APPLICATION_CONTEXT.name());
    }
}
